﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="HCFramework.Product.Admin.ManufacturerManage.Default" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="groupHeader">
        Manufacturer Management
    </div>
    <asp:Panel ID="PanelGrid" runat="server">
        <telerik:RadGrid ID="RadGridMain" runat="server" Skin="Office2007" AutoGenerateColumns="False"
            OnItemCommand="RadGridMain_ItemCommand" OnPreRender="RadGridMain_PreRender" AllowPaging="True"
            ShowFooter="true" AllowSorting="True" GridLines="None" AllowMultiRowSelection="True">
            <ClientSettings>
                <Selecting AllowRowSelect="True" />
            </ClientSettings>
            <MasterTableView CommandItemSettings-AddNewRecordText="Thêm mới" NoMasterRecordsText="No records.">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <CommandItemSettings AddNewRecordText="Thêm mới" />
                <Columns>
                    <telerik:GridClientSelectColumn UniqueName="column">
                    </telerik:GridClientSelectColumn>
                    <telerik:GridBoundColumn DataField="ManufacturerID" UniqueName="ManufacturerID" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn HeaderText="Name">
                        <ItemTemplate>
                            <asp:TextBox ID="txtName" Text='<%#Eval("Name")%>' runat="server"></asp:TextBox>
                        </ItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                        </FooterTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn HeaderText="Website">
                        <ItemTemplate>
                            <asp:TextBox ID="txtWebsite" Text='<%#Eval("Website")%>' runat="server"></asp:TextBox>
                        </ItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtWebsite" runat="server"></asp:TextBox>
                        </FooterTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn HeaderText="OrderDisplay">
                        <ItemTemplate>
                            <asp:TextBox ID="txtOrderDisplay" Text='<%#Eval("OrderDisplay")%>' runat="server"></asp:TextBox>
                        </ItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtOrderDisplay" Text="1" runat="server"></asp:TextBox>
                        </FooterTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn HeaderText="LogoUrl">
                        <ItemTemplate>
                            <asp:FileUpload ID="fileUploadLogoUrl" runat="server" />
                        </ItemTemplate>
                        <FooterTemplate>
                            <asp:FileUpload ID="fileUploadLogoUrl" runat="server" />
                        </FooterTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="" UniqueName="Action">
                        <ItemTemplate>
                            <asp:Image ID="imageLogoUrl" ImageUrl='<%#Eval("LogoUrl")%>' Width="50px" Height="50px" runat="server" />
                        </ItemTemplate>
                        <FooterTemplate>
                            <asp:Button ID="btnAddNew" runat="server" Text="Insert" CommandName="Them"></asp:Button>
                        </FooterTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
        <div style="padding-top: 10px">
            <asp:LinkButton ID="LinkButtonUpdate" runat="server" CssClass="linkButton" OnClick="LinkButtonUpdate_Click">Update</asp:LinkButton>
            <asp:LinkButton ID="LinkButtonDelete" OnClientClick="return confirm('Are you sure?');"
                runat="server" CssClass="linkButton" OnClick="LinkButtonDelete_Click">Delete</asp:LinkButton>
        </div>
    </asp:Panel>
</asp:Content>
